翻訳と辞書
Words near each other
・ File Allocation Table
・ File Alteration Monitor
・ File and stream I/O in C Sharp
・ File archiver
・ File area network
・ File association
・ File attribute
・ File binder
・ File carving
・ File change log
・ File Commander
・ File Control Block
・ File conversion center
・ File copying
・ File deletion
File descriptor
・ File dialog
・ File dynamics
・ File exchange
・ File eXchange Protocol
・ File Explorer
・ File Fixity
・ File folder
・ File for Record
・ File format
・ FILe Generator and Editor
・ File Grinders' Society
・ File hosting service
・ FILE ID.DIZ
・ File inclusion vulnerability


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

File descriptor : ウィキペディア英語版
File descriptor
In Unix and related computer operating systems, a file descriptor (FD, less frequently fildes) is an abstract indicator used to access a file or other input/output resource, such as a pipe or network connection. File descriptors form part of the POSIX application programming interface. A file descriptor is a non-negative integer, represented in C programming language as the type .
Each Unix process (except perhaps a daemon) should expect to have three standard POSIX file descriptors, corresponding to the three standard streams:
==Overview==

In the traditional implementation of Unix, file descriptors index into a per-process ''file descriptor table'' maintained by the kernel, that in turn indexes into a system-wide table of files opened by all processes, called the ''file table''. This table records the ''mode'' with which the file (or other resource) has been opened: for reading, writing, appending, reading and writing, and possibly other modes. It also indexes into a third table called the ''inode table'' that describes the actual underlying files. To perform input or output, the process passes the file descriptor to the kernel through a system call, and the kernel will access the file on behalf of the process. The process does not have direct access to the file or inode tables.
On Linux, the set of file descriptors open in a process can be accessed under the path /proc/PID/fd/, where PID is the process identifier.
In Unix-like systems, file descriptors can refer to any Unix file type named in a file system. As well as regular files, this includes directories, block and character devices (also called "special files"), Unix domain sockets, and named pipes. File descriptors can also refer to other objects that do not normally exist in the file system, such as anonymous pipes and network sockets.
The FILE data structure in the C standard I/O library usually includes a low level file descriptor for the object in question on Unix-like systems. The overall data structure provides additional abstraction and is instead known as a ''file handle.''

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「File descriptor」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.